﻿@using Abp.Application.Services.Dto;
@using FwProject.Core.TypeNumber
@using FwProject.Restaurant.Dto
@using FwProject.TypeNumber.Dto
@model LoadCarOutputDto
@{
    Layout = null;
}
<div class="modal-dialog">
    <div class="modal-content animated fadeIn">
            <form id="form0" class="form-horizontal" action="/Distribution/UpdateTypeNumber?id=@ViewBag.Id" method="post" novalidate="novalidate" data-ajax="true" data-ajax-success="ReloadAjaxCallbackgoback" data-ajax-failure="FailureAjaxCallback" data-ajax-method="Post" role="form">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">修改装车货品型号</h4>
                </div>
                <div class="modal-body">
                    <div class="form-body">
                        @*<input type="hidden" name="Id" value="@Html.ViewContext.RouteData.Values["id"]" />*@
                        <table class="table table-bordered table-hover table-rowselected">
                            <thead>
                                <tr>
                                    <th>货品型号</th>
                                    <th>装车数</th>
                                    <th>单位</th>
                                </tr>
                            </thead>
                            <tbody>
                                @{ var i = 0;}
                                @foreach (var item in Model.LoadingCarInfoList)
                                {
                                    <tr>
                                        <td>
                                            <input type="text" name="LoadCarTypeDetails[@i].TypeNumberName" value="@item.TypeNumberInfoModel.Name" class="input-sm form-control" readonly="readonly" />
                                        </td>
                                        <td>
                                            <input type="hidden" name="LoadCarTypeDetails[@i].TypeNumberInfoId" value="@item.TypeNumberInfoId" />
                                            <input type="text" name="LoadCarTypeDetails[@i].LoadCarCount" value="@item.Countproduct" class="input-sm form-control" />
                                        </td>
                                        <td>@item.TypeNumberInfoModel.Unit</td>
                                        @*<td>
                                            <button class="btn btn-danger btn-xs btnDel" type="button" id="btnDel"><i class="fa fa-times"></i></button>
                                        </td>*@
                                    </tr>
                                    i++;
                                }
                            </tbody>
                        </table><br />
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-primary" data-loading-text="执行中...">保存</button>
                </div>
            </form>
</div>
</div>
